package com.ktjy.ulits;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringUtil {

    static ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

    public static Object getBean(String name) {
        return context.getBean(name);
    }
}
